package com.webflux.tm.webflux.module.test.demo;

import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/**
 * @program: knowledge-pooling
 * @ClassName IProductService
 * @description:
 * @author: tomato
 * @create: 2023-07-28 16:23
 * @Version 1.0
 **/
public interface IProductService {
    //根据 id 查询用户
    Mono<Product> getProductById(int id);

    //查询所有用户
    Flux<Product> getAllProduct();

    //添加用户
    Mono<Void> saveProductInfo(Mono<Product> user);

}